package website.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import website.domain.*;

import java.util.List;

public interface ResService extends IService<Resource> {

    ResModel<List<Classify>> getClassify();

    ResModel<IPage<Resource>> getByPage(Integer current, Integer size, Integer id);

    ResModel getClassifyName(Integer id);

    ResModel<Resource> getResource(Integer id);

    ResModel<IPage<Classify>> getByClassifyPage(Integer current, Integer size);

    ResModel delClassify(Integer id);

    ResModel addClassify(Classify classify);

    ResModel delRes(Integer id);

    ResModel addRes(Resource resource);

    ResModel addResView(Integer id);

    ResModel<List<Tag>> listTag();

    ResModel<List<Resource>> getHot();

    ResModel<IPage<Resource>> getByUidResList(Integer current, Integer size, Integer uid);
}
